package com.fayou.cloud.multipledatasourcemybatisplus.controller;

import com.fayou.cloud.multipledatasourcemybatisplus.entity.TStorage;
import com.fayou.cloud.multipledatasourcemybatisplus.service.TStorageService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (TStorage)表控制层
 *
 * @author makejava
 * @since 2020-06-04 20:12:43
 */
@RestController
@RequestMapping("tStorage")
public class TStorageController {
    /**
     * 服务对象
     */
    @Resource
    private TStorageService tStorageService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public TStorage selectOne(Long id) {
        return this.tStorageService.queryById(id);
    }

}